package com.hwc.demo.dubbo.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.hwc.demo.dubbo.service.OrderService;

@RestController
public class OrderController {
	@Autowired
	OrderService orderService; //本地bean
	
	@GetMapping("/address/{id}")
	public Object getUserAddress(@PathVariable Integer id) {
		
		return orderService.initOrderAddress(id);
	}
}
